﻿@model KipLink.Models.ChangePasswordModel

@{
    ViewBag.Title = "Change Password";
}

@*@section Header {
    @Html.ActionLink("Cancel", "Index", "Home", null, new { data_icon = "arrow-l", data_rel = "back" })
    <h1>@ViewBag.Title</h1>
}*@

<p>
    Passwords must be at least @Membership.MinRequiredPasswordLength characters long.
</p>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary()

        <table>
            <tr>
                <td colspan="2" align="center">
                    Account information
                </td>
            </tr>
            <tr>
                <td>
                    @Html.LabelFor(m => m.OldPassword)
                </td>
                <td>
                    @Html.PasswordFor(m => m.OldPassword)
                    
                </td>
            </tr>
            <tr>
                <td>
                    @Html.LabelFor(m => m.NewPassword)
                </td>
                <td>
                    @Html.PasswordFor(m => m.NewPassword)
                    
                </td>
            </tr>
            <tr>
                <td>
                    @Html.LabelFor(m => m.ConfirmPassword)
                </td>
                <td>
                    @Html.PasswordFor(m => m.ConfirmPassword)
                    
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <input class="btn btn-success btn-default" type="submit" value="Change password" />
                </td>
            </tr>
        </table>
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}